import tkinter as tk

window = tk.Tk()
window.title = ('cell classificaiton robot')
window.geometry('200x200')

entry = tk.Entry(window, show="*")

entry.pack()


def insert_point(): #输入到光标的地方
    var = entry.get()
    t.insert('insert', var)


def insert_end(): # 输入到末尾的地方
    var = entry.get()
    # t.insert(1.1, var)
    t.insert('end', var)


b1 = tk.Button(window, text='insert point', width=15, height=2, command=insert_point)

b1.pack()

b2 = tk.Button(window, text='insert end', width=15, height=2, command=insert_end)

b2.pack()

t = tk.Text(window, height=2)
t.pack()

window.mainloop()
